package ejb;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.Query;

import dao.BaseDao;
import entity.Subjects;

@Stateless
public class SubjectsBean extends BaseDao<Subjects> implements SubjectsBeanRemote, SubjectsBeanLocal {
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Subjects> getAll() {
		Query query = this.em.createNamedQuery("Subjects.findAll");
		return query.getResultList();
	}
}
